import request from '@/utils/request'
import scope from './scope'
const apiPrefix = `${process.env.VUE_APP_BASE_API}/${scope}/stocklist/`

// 仓库管理
export const getStockIn = (params, config = {}) => {
  return request.get(apiPrefix + 'get', { params: params }, config)
}
// 根据物料id获取物料规格信息
export const getMaterInfo = (params, config = {}) => {
  return request.get(apiPrefix + 'getmaterinfo', { params: params }, config)
}
export const getStockListPage = (params, config = {}) => {
  params = params || {}
  return request.post(apiPrefix + 'getpage', params, config)
}
export const getAllPage = (params, config = {}) => {
  return request.get(apiPrefix + 'exportAllPage', { params: params }, config)
}

export const getStockDetailListPage = (params, config = {}) => {
  params = params || {}
  return request.post(apiPrefix + 'getdetailpage', params, config)
}
export const getAllDetailPage = (params, config = {}) => {
  return request.get(apiPrefix + 'exportalldetailpage', { params: params }, config)
}

